import request from '@/utils/request'

// 查询客户账户流水列表
export function listTransactionKH(query) {
  return request({
    url: '/wms/transactionKH/list',
    method: 'get',
    params: query
  })
}

// 查询客户账户流水详细
export function getTransactionKH(id) {
  return request({
    url: '/wms/transactionKH/' + id,
    method: 'get'
  })
}

// 新增客户账户流水
export function addTransactionKH(data) {
  return request({
    url: '/wms/transactionKH',
    method: 'post',
    data: data
  })
}

// 修改客户账户流水
export function updateTransactionKH(data) {
  return request({
    url: '/wms/transactionKH',
    method: 'put',
    data: data
  })
}

// 删除客户账户流水
export function delTransactionKH(id) {
  return request({
    url: '/wms/transactionKH/' + id,
    method: 'delete'
  })
}
